home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970104-19970326
/
000156_news@columbia.edu _Fri Jan 31 12:13:58 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA01918
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 31 Jan 1997 12:13:57 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA12204
for kermit.misc@watsun; Fri, 31 Jan 1997 12:13:56 -0500 (EST)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: ECHO of filename to be sent within script
Date: 31 Jan 1997 17:13:55 GMT
Organization: Columbia University
Lines: 45
Message-ID: <5ct98j$gif$1@apakabar.cc.columbia.edu>
References: <5ckq5k$kg4@morgan.vf.lmco.com> <5cntcd$ils$1@apakabar.cc.columbia.edu> <5csfnb$7kg@morgan.vf.lmco.com>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:6506
In article <5csfnb$7kg@morgan.vf.lmco.com>,
Michael Groberg <groberg@slr.orl.mmc.com> wrote:
: In article <5cntcd$ils$1@apakabar.cc.columbia.edu>,
: fdc@watsun.cc.columbia.edu says...
: >
: >In article <5ckq5k$kg4@morgan.vf.lmco.com>,
: >Michael Groberg <groberg@slr.orl.mmc.com> wrote:
: >: Does anyone know of a way to echo the filename that is being sent to the
: >: user. The "ECHO \%1" command doesn't work and I can't find an example
: >: in any of the scripts or documents.
: >:
: >Your question is a bit vague. If Kermit is in remote mode, it can't echo
: >anything because it is hidden behind the local Kermit's file transfer
: >display. If it is in local mode, you can see the name on the file transfer
: >display anyway.
: >
: >Kermit 95 and C-Kermit have a variable \f(filespec) that contains the
: >file specification used in the most recent file-transfer command.
: >
: >If you need the filename to be in a certain variable, you can define a
: >macro for this, like:
: >
: > define mysend echo sending \%1, send \%1, end \v(status)
:
: Unfortunately, with Kermit 3.14, the "echo \%1" does not echo anything except
: a blank line.
:
You mean, when you use a macro like the one above? This works here -- but
of course you need to "set file display none" or somesuch, otherwise the file
transfer display will pop up right away and clear the info off your screen.
: I am using Kermit for file transfer only, and once I
: successfully complete the transfer I want to copy the file to another
: directory, and then delete it from the original. So far I have not found
: a way to determine what file is passed to kermit on the command line.
:
Then let's forget about the variables, macros, and such. MS-DOS Kermit 3.15
does this for you automatically if you use the MOVE command instead of the
SEND command. MOVE works like SEND, except it deletes the original file if
and only if it is sent successfully. It works with file groups (wildcards)
too. MS-DOS Kermit 3.15 is in the final stages of Beta:
ftp://kermit.columbia.edu/kermit/test/bin/msk315.zip
- Frank